package com.uvnos4j.matilda.system.vo;

import com.uvnos4j.matilda.commons.vo.AbstractVo;
import com.uvnos4j.matilda.system.domain.SysRole;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 角色 Vo
 * <p>
 * Description:角色 Vo
 * </p>
 *
 * @author Guo.wl
 * @version v1.0.0
 * @see com.uvnos4j.matilda.system.vo
 * @since 2020-08-31 22:40:21
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class RoleVo extends AbstractVo<SysRole> {

    @NotBlank(message = "角色名称不能为空")
    @Length(min = 2, max = 20, message = "角色名称需要在2-20字符之间")
    private String name;

    @NotBlank(message = "角色英文名称不能为空")
    private String enname;

    @Length(max = 200, message = "角色备注需要在200个字以内")
    private String note;

}